package cn.smbms.dao.provider;

import cn.smbms.pojo.Provide;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ProviderMapper {

    public int getProviderCount(@Param("proCode") String proCode, @Param("proName") String proName);

    public List<Provide> getProvider();


    public List<Provide> getProviderList(@Param("proCode") String proCode, @Param("proName") String proName,
                                         @Param("beginIndex") int currentPageNo,@Param("pageSize") int pageSize);

    /**
     * 增加供应商
     * @param provide
     * @return
     * @throws Exception
     */
    public int add(Provide provide);

    /**
     * 通过proId获取Provider
     * @param id
     * @return
     * @throws Exception
     */
    public Provide getProvideById(String id);

    /**
     * 供应商
     * @param provider
     * @return
     * @throws Exception
     */
    public int modify(Provide provider);
}
